# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-applets
pkgver=3.44.0
pkgrel=0
pkgdesc="Small programs for the panel"
url="https://wiki.gnome.org/Projects/GnomeApplets"
# s390x and riscv64 blocked by polkit -> upower
arch="all !s390x !riscv64"
license="GPL-2.0-or-later"
depends="adwaita-icon-theme"
makedepends="gtk+3.0-dev glib-dev libgtop-dev libwnck3-dev libnotify-dev upower-dev
	dbus-glib-dev adwaita-icon-theme-dev libxml2-dev libgweather4-dev polkit-dev
	gucharmap-dev intltool gnome-panel-dev itstool"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnome-applets/${pkgver%.*}/gnome-applets-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-mini-commander
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8a9a75590e96d0ef6af4775d261337b41b23779b86d38080014f49666fdaee68bc9ef58eeae94e87c43bd07b0b0720b867f03f2c2d0f2d8b7daea3c66251fc7e  gnome-applets-3.44.0.tar.xz
"
